package com.googlecode.ozonbooksfinder.flexspaghetti.events
{
	import flash.events.Event;

	public class SearchEvent extends Event
	{
		public static const SEARCH:String = "search";
		
		public var searchString:String;
		public var searchContext:String;
		
		public function SearchEvent(type:String,
			searchString:String,
			searchContext:String, 
			bubbles:Boolean=false, 
			cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.searchString = searchString;
			this.searchContext = searchContext;
		}
		
		override public function clone():Event
		{
			var result:SearchEvent = 
				new SearchEvent (type, searchString, searchContext, 
				bubbles, cancelable);
			return result;
		}
	}
}